package com.edu.model.dto;

import com.edu.model.EventNode;
import lombok.Data;

import java.io.Serializable;

@Data
public class NodeMetadata implements Serializable {

    private String nodeId;

    private String parentNodeId;

    private String nodeName;

    private String config;

    private String nodeType;

    public NodeMetadata() {
    }

    public NodeMetadata(EventNode eventNode) {
        this.setNodeId(eventNode.getNodeId());
        this.setParentNodeId(eventNode.getParentNodeId());
        this.setNodeName(eventNode.getNodeName());
        this.setNodeType(eventNode.getNodeType());
    }
}
